/**
 * 
 */
package com.ztesoft.web.baseconfig.service;

import java.util.List;

import com.ztesoft.core.common.Page;
import com.ztesoft.framework.exception.BaseAppException;
import com.ztesoft.web.baseconfig.db.po.ColumnsRelationPO;
import com.ztesoft.web.baseconfig.db.po.TargetColMapPO;

/**
 * <Description> <br>
 * 
 * @author codeCreater<br>
 * @version 1.0<br>
 * @taskId <br>
 * @CreateDate 2014年11月11日 <br>
 * @since V1.0<br>
 * @see com.ztesoft.web.baseconfig.service <br>
 */

public interface ITargetColMapService {

	/**
	 * 根据目标ID获取字段映射list
	 * 
	 * @param key
	 * @return
	 * @throws BaseAppException
	 */
	List<ColumnsRelationPO> selectByPrimaryKey(Integer key) throws BaseAppException;

	List<TargetColMapPO> selectByArg(TargetColMapPO record) throws BaseAppException;

	Page<TargetColMapPO> selectByArgAndPage(TargetColMapPO record, Page<TargetColMapPO> resultPage)
			throws BaseAppException;

	TargetColMapPO add(TargetColMapPO record) throws BaseAppException;

	int update(TargetColMapPO record) throws BaseAppException;

	int delete(TargetColMapPO record) throws BaseAppException;

}
